package com.opennetexam.manager.common;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * @author 奶茶
 * 控制考场的一个公用静态类
 * Created on 2017/11/17.
 */
public class RoomControl {

    /**
     * 一个考点下的所有强制交卷记录信息
     *      1.存储准考证号集合，英文逗号分隔
     *      2.学生端每次获取后进行删除对应准考证号，之后再进行相应业务【强制交卷】处理
     */
    private static List<Object> mandatoryPaperList;

    /**
     * 一个考点下的所有单个考生延时记录信息
     *      1.存储准考证号集合，英文逗号分隔
     *      2.学生端每次获取后进行删除对应准考证号，之后再进行相应业务【单个延时】处理
     */
    private static List<Object> examineeDelayedList;

    /**
     * 一个考点下的所有整场延时记录信息
     *      1.存储考场ID集合，英文逗号分隔
     *      2.学生端每次获取后再进行相应业务【整场延时】处理
     *      3.注意状态，防止重复进行整场延时操作
     */
    private static List<Object> roomDelayedList;

    /**
     * 一个字典，记录指定考号所在的IP记录
     */
    private static Map<String,String> examineeLoginRecord;

    static {
        mandatoryPaperList = new ArrayList<>();
        examineeDelayedList = new ArrayList<>();
        roomDelayedList = new ArrayList<>();
        examineeLoginRecord = new HashMap<>();
    }

    public static List<Object> getMandatoryPaperList() {
        return mandatoryPaperList;
    }

    public static void setMandatoryPaperList(List<Object> mandatoryPaperList) {
        RoomControl.mandatoryPaperList = mandatoryPaperList;
    }

    public static List<Object> getExamineeDelayedList() {
        return examineeDelayedList;
    }

    public static void setExamineeDelayedList(List<Object> examineeDelayedList) {
        RoomControl.examineeDelayedList = examineeDelayedList;
    }

    public static List<Object> getRoomDelayedList() {
        return roomDelayedList;
    }

    public static void setRoomDelayedList(List<Object> roomDelayedList) {
        RoomControl.roomDelayedList = roomDelayedList;
    }

    public static Map<String, String> getExamineeLoginRecord() {
        return examineeLoginRecord;
    }

    public static void setExamineeLoginRecord(Map<String, String> examineeLoginRecord) {
        RoomControl.examineeLoginRecord = examineeLoginRecord;
    }

}
